package com.elm.service;

import java.util.List;

import com.elm.po.Person;
import com.elm.po.User;

public interface UserService {
	public User getUserByNameByPass(String username, String password);

	public User getUserByName();

	//admin专属操作
	User banUser(int targetUserId);	//在订单评价评论审核页面，一个按钮，封禁用户,id1为对象，2为admin验证
	
	//商家boss专属操作
	
	public List<Person> getAllStaff(int businessId);

	public User createUser(User user);

	public int updatePassword(User user);

	public User addStaff(int staffUserId, int businessId);

	public int deleteStaff(int staffUserId, int businessId);

	public User getUserByName(String username);
	public String getAuthority();
}    